package com.shrct.businessprocess.purchase.proxy;

import com.shrct.businessprocess.purchase.proxy.ICanAcceptProductServiceProxy;
import com.shrct.businessprocess.purchase.proxy.IHasAcceptedProductsProxy;
import com.shrct.businessprocess.purchase.proxy.RCBasePurchaseOrderProxy;
import com.shrct.businessprocess.purchase.proxy.RCPurchaseOrderAction;
import edu.fudan.mylang.pf.ProxyTarget;

@ProxyTarget("com.shrct.businessprocess.purchase.RCPurchaseOrder")
public class RCPurchaseOrderProxy extends RCBasePurchaseOrderProxy implements IHasAcceptedProductsProxy, ICanAcceptProductServiceProxy {
  public RCPurchaseOrderProxy() {
    this.setClazzName("com.shrct.businessprocess.purchase.RCPurchaseOrder");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final RCPurchaseOrderAction action) {
    return RCPurchaseOrderManager.isActionValid(action,status);
  }
}
